package com.cc.utils;
import org.apache.commons.codec.binary.Base64;

public class Base64Helper {


/** 
 * 编码 
 * @param byteArray 
 * @return 
 */  
   public static String encode(byte[] byteArray) {  
       return new String(new Base64().encode(byteArray));  
   }  
  
   /** 
    * 解码 
    * @param base64EncodedString 
    * @return 
    */  
   public static byte[] decode(String base64EncodedString) {  
    return new Base64().decode(base64EncodedString);  
   }
   
   
   public static void main(String[] args) {
	byte[] bkey=decode("/Q/PXRgfMgVz10z9lW/3POUMzATJTop5n4Cl9ILVoQiPc2ve5kDRPdr1rOUqqS5nhPLt3eD+VmXENTSiszK7/A==");
	StringBuffer sb=new StringBuffer();
	for(int i=0;i<bkey.length;i++) {
		sb.append(bkey[i]);
	}
	System.out.println(sb.toString());
}
	   
	   
	   
}
